# 通过这个content-desc/description属d
from appium import webdriver
from selenium.webdriver.common.by import By

# 字典
# 1.设置终端参数项
desired_caps = {
    "platformName": "Android",
    "platformVersion": "5.1.1",
    "deviceName": "Samsung Galaxy S10",
    "appPackage": "com.tal.kaoyan",
    "appActivity": "com.tal.kaoyan.ui.activity.SplashActivity",
    "noReset": True
}

# 2.appium server进行启动

# 3.发送指令给到appium server
driver = webdriver.Remote("http://127.0.0.1:4723/wd/hub", desired_caps)
